// @import '~@/global/index.less';
@import '../../global/index.less';
.btn {
  position: relative;
  display: inline-block;
  color: @body-color;
  font-weight: @btn-font-weight;
  line-height: @btn-line-height;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  background-image: none;
  border: @btn-border-width solid transparent;
  box-shadow: @btn-box-shadow;
  cursor: pointer;
  transition: @btn-transition;
  .button-size( @btn-padding-y,  @btn-padding-x,  @btn-font-size,  @border-radius);
  &.disabled,
  &[disabled] {
    box-shadow: none;
    cursor: not-allowed;
    opacity: @btn-disabled-opacity;
    > * {
      pointer-events: none;
    }
  }
}

.btn-lg {
  .button-size(@btn-padding-y-lg, @btn-padding-x-lg, @btn-font-size-lg, @btn-border-radius-lg);
}
.btn-sm {
  .button-size(@btn-padding-y-sm, @btn-padding-x-sm, @btn-font-size-sm, @btn-border-radius-sm);
}

.btn-primary {
  .button-style(@primary, @primary, @white);
}
.btn-danger {
  .button-style(@danger, @danger, @white);
}

.btn-default {
  .button-style(@white, @gray-400, @body-color, @white, @primary, @primary);
}

.btn-link {
  color: @btn-link-color;
  font-weight: @font-weight-normal;
  text-decoration: @link-decoration;
  box-shadow: none;
  &:hover {
    color: @btn-link-hover-color;
    text-decoration: @link-hover-decoration;
  }
  &:focus,
  &.focus {
    text-decoration: @link-hover-decoration;
    box-shadow: none;
  }
  &:disabled,
  &.disabled {
    color: @btn-link-disabled-color;
    pointer-events: none;
  }
}
